package com.isoftstone.project.system.service;


import com.isoftstone.framework.domain.Page;
import com.isoftstone.project.system.domain.SysDepartment;

import java.util.List;
import java.util.Map;

/**
 * @描述：
 * @author：guoX
 * @date：2017/1/10
 */
public interface IDepartMentService {

	public void saveDept(SysDepartment department)throws Exception;

	public void updateDept(SysDepartment department)throws Exception;

	List<SysDepartment> getSysDeptlistPage(Page page) throws Exception;

	SysDepartment getDeptById(String deptId) throws Exception;

	List<SysDepartment> getDeptByName(String deptName) throws Exception;


	String deleteDept(String deptId)throws Exception;
	 void  deleteDept1(String deptId)throws Exception;

    List<SysDepartment> getDeptAll(String deptId)throws Exception;
	//获取子集所有部门
	List<String> getDeptByparentId(String parentId) throws  Exception;

	List<String> getDeptUids(List<String> deptIds) throws  Exception;

    List<Map<String,Object>> getRestDeptlistPage(Page page);

    String impDepartment(List<SysDepartment> departmentList, boolean updateSupport, String operName);
}
